package com.mesd.killer.model;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Proxy;

@Entity(name="gameDetail")
@Table(name="game_detail_data")
@Cache(usage=CacheConcurrencyStrategy.READ_ONLY)
@Proxy(lazy=false)
public class GameDetail implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -4853165279298493289L;

	public final static String TABLE_GAME_DETAIL = "game_detail_data";
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="detail_id")
	private long detailId;
	public final static String DETAIL_ID = "detail_id";
	
//	@ManyToOne(targetEntity=GameDetail.class)
//	@JoinColumn(name="game_id",updatable=false)
//	private GameResult gameResult;
//	public final static String GAME_RESULT = "gameResult";
	
	@Column(name="game_id")
	private long gameId;
	public final static String GAME_ID = "game_id";
	
	@Column(name="company_name",length=10)
	private String companyName;
	public final static String COMPANY_NAME = "company_name";
	
	@Column(name="pankou_type",length=10)
	private String pankouType;
	public final static String PANKOU_TYPE = "pankou_type";
	
	@Column(name="host_shuiwei")
	private double hostShuiwei;
	public final static String HOST_SHUIWEI = "host_shuiwei";
	
	@Column(name="pankou",length=10)
	private String pankou;
	public final static String PANKOU = "pankou";
	
	@Column(name="visit_shuiwei")
	private double visitShuiwei;
	public final static String VISIT_SHUIWEI = "visit_shuiwei";
	
	@Column(name="host_win_odds")
	private double hostWinOdds;
	public final static String HOST_WIN_ODDS = "host_win_odds";
	
	@Column(name="draw_odds")
	private double drawOdds;
	public final static String DRAW_ODDS = "draw_odds";
	
	@Column(name="visit_win_odds")
	private double visitWinOdds;
	public final static String VISIT_WIN_ODDS = "visit_win_odds";
	
	@Column(name="big_shuiwei")
	private double bigShuiwei;
	public final static String BIG_SHUIWEI = "big_shuiwei";
	
	@Column(name="daxiao_pankou")
	private String daxiaoPankou;
	public final static String DAXIAO_PANKOU = "daxiao_pankou";
	
	@Column(name="small_shuiwei")
	private double smallShuiwei;
	public final static String SMALL_SHUIWEI = "small_shuiwei";
	
	@Column(name="uda0",length=50)
	private String uda0;
	public final static String UDA0 = "uda0";
	
	@Column(name="uda1",length=50)
	private String uda1;
	public final static String UDA1 = "uda1";
	
	@Column(name="uda2",length=50)
	private String uda2;
	public final static String UDA2 = "uda2";
	
	@Column(name="udt0",columnDefinition="datetime")
	private Timestamp udt0;
	public final static String UDT0 = "udt0";
	
	@Column(name="udt1",columnDefinition="datetime")
	private Timestamp udt1;
	public final static String UDT1 = "udt1";
	
	@Column(name="udt2",columnDefinition="datetime")
	private Timestamp udt2;
	public final static String UDT2 = "udt2";

	public long getDetailId() {
		return detailId;
	}

	public void setDetailId(long detailId) {
		this.detailId = detailId;
	}


//	public GameResult getGameResult() {
//		return gameResult;
//	}
//
//	public void setGameResult(GameResult gameResult) {
//		this.gameResult = gameResult;
//	}
	
	

	public String getCompanyName() {
		return companyName;
	}

	public long getGameId() {
		return gameId;
	}

	public void setGameId(long gameId) {
		this.gameId = gameId;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getPankouType() {
		return pankouType;
	}

	public void setPankouType(String pankouType) {
		this.pankouType = pankouType;
	}

	public double getHostShuiwei() {
		return hostShuiwei;
	}

	public void setHostShuiwei(double hostShuiwei) {
		this.hostShuiwei = hostShuiwei;
	}

	public String getPankou() {
		return pankou;
	}

	public void setPankou(String pankou) {
		this.pankou = pankou;
	}

	public double getVisitShuiwei() {
		return visitShuiwei;
	}

	public void setVisitShuiwei(double visitShuiwei) {
		this.visitShuiwei = visitShuiwei;
	}

	public double getHostWinOdds() {
		return hostWinOdds;
	}

	public void setHostWinOdds(double hostWinOdds) {
		this.hostWinOdds = hostWinOdds;
	}

	public double getDrawOdds() {
		return drawOdds;
	}

	public void setDrawOdds(double drawOdds) {
		this.drawOdds = drawOdds;
	}

	public double getVisitWinOdds() {
		return visitWinOdds;
	}

	public void setVisitWinOdds(double visitWinOdds) {
		this.visitWinOdds = visitWinOdds;
	}

	public double getBigShuiwei() {
		return bigShuiwei;
	}

	public void setBigShuiwei(double bigShuiwei) {
		this.bigShuiwei = bigShuiwei;
	}

	public String getDaxiaoPankou() {
		return daxiaoPankou;
	}

	public void setDaxiaoPankou(String daxiaoPankou) {
		this.daxiaoPankou = daxiaoPankou;
	}

	public double getSmallShuiwei() {
		return smallShuiwei;
	}

	public void setSmallShuiwei(double smallShuiwei) {
		this.smallShuiwei = smallShuiwei;
	}

	public String getUda0() {
		return uda0;
	}

	public void setUda0(String uda0) {
		this.uda0 = uda0;
	}

	public String getUda1() {
		return uda1;
	}

	public void setUda1(String uda1) {
		this.uda1 = uda1;
	}

	public String getUda2() {
		return uda2;
	}

	public void setUda2(String uda2) {
		this.uda2 = uda2;
	}

	public Timestamp getUdt0() {
		return udt0;
	}

	public void setUdt0(Timestamp udt0) {
		this.udt0 = udt0;
	}

	public Timestamp getUdt1() {
		return udt1;
	}

	public void setUdt1(Timestamp udt1) {
		this.udt1 = udt1;
	}

	public Timestamp getUdt2() {
		return udt2;
	}

	public void setUdt2(Timestamp udt2) {
		this.udt2 = udt2;
	}
	
	
}
